#!../../common/bats/bin/bats
# -*-sh-*-

load ../../common/test_helper_functions || exit 1
source ../../common/functions || exit 1

check_compiler_family CC CXX FC

family=$LMOD_FAMILY_COMPILER

@test "[Compilers] C compiler man/help page ($family)" {

    if [[ "$family" =~ "llvm" ]];then
	run $CC -help
	assert_success
    else
	run man -w $CC
	assert_success
    fi
}

@test "[Compilers] C++ compiler man/help page ($family)" {

    if [[ "$family" =~ "llvm" ]];then
	run $CXX -help
    else
	run man -w $CXX
	assert_success
    fi
}

@test "[Compilers] Fortran compiler man/help page ($family)" {

    if [[ "$family" =~ "llvm" ]];then
	run $FC -help
	assert_success
    else
	run man -w $FC
	assert_success
    fi
}




